Both are double
.
Here is some of the documentation:
cos public static double cos(double a) Returns the trigonometric cosine of an angle.
The angle a
must be expressed in radians.
This is so common in math and programming sometimes the
documentation does not mention it.
(Math Review: ) Can angles in radian mesure be converted to degrees?